import axios from '../axios';
export default {
    //add
    addClaims(data) {
        return axios({
            url: '/claims/addClaims',
            method: 'post',
            data
        })
    },

    //get
    getClaims() {
        return axios({
            url: '/claims/getClaims',
            method: 'get',

        })
    },

    //editClaims
    editClaims(data) {
        return axios({
            url: '/claims/editClaims',
            method: 'post',
            data
        })
    },

    //delete
    deleteClaims(data) {
        return axios({
            url: '/claims/deleteClaims',
            method: 'post',
            data
        })
    },
    //管理人员查看
    getClaimApply(params) {
        return axios({
            url: '/claims/getClaimApply',
            method: 'get',
            params
        })
    },
    //管理人员处理，同意理赔
    okClaimsApply(data) {
        return axios({
            url: '/claims/okClaimsApply',
            method: "post",
            data
        })
    },
    //管理人员处理，不同意理赔
    noClaimsApply(data) {
        return axios({
            url: '/claims/noClaimsApply',
            method: "post",
            data
        })
    },
    //管理人员查看已审核过的理赔订单
    getFinishClaimApply(params) {
        return axios({
            url: '/claims/getFinishClaimApply',
            method: 'get',
            params
        })
    }
}